package com.qianfan.invoice.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;


@ConfigurationProperties(prefix = "qianfan")
public class QianfanProperties {
    /**
     * 千帆API密钥
     */
    private String apiKey;

    /**
     * 千帆Secret Key
     */
    private String secretKey;

    /**
     * API基础URL
     */
    private String baseUrl = "https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/";
    
    /**
     * 使用的模型名称
     */
    private String model = "ernie-4.5-8k-preview";
    
    /**
     * 温度参数
     */
    private Double temperature = 0.7;
    
    /**
     * 最大token数
     */
    private Integer maxTokens = 2048;

    /**
     * 返回序列数量
     */
    private Integer n = 1;

    public String getApiKey() {
        return apiKey;
    }

    public void setApiKey(String apiKey) {
        this.apiKey = apiKey;
    }

    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    public String getBaseUrl() {
        return baseUrl;
    }

    public void setBaseUrl(String baseUrl) {
        this.baseUrl = baseUrl;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public Double getTemperature() {
        return temperature;
    }

    public void setTemperature(Double temperature) {
        this.temperature = temperature;
    }

    public Integer getMaxTokens() {
        return maxTokens;
    }

    public void setMaxTokens(Integer maxTokens) {
        this.maxTokens = maxTokens;
    }

    public Integer getN() {
        return n;
    }

    public void setN(Integer n) {
        this.n = n;
    }
}